﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Example2_CSharp
{
    class CRectangle
    {
        int w, h;
        public CRectangle(int a, int b)
        {
            w = a;
            h = b;
        }
        public int area()
        {
            return (w * h);
        }
    }
    class Program
    {
        static void Main(String[] args)
        {
            CRectangle recta= new CRectangle (3,4);   
            CRectangle rectb= new CRectangle (5,6);
            Console.WriteLine("recta:{0}",recta.area());
            Console.WriteLine("rectb:{0}", rectb.area());
        }
    }
}